﻿/***********************************************************************
 * <copyright file="DictionaryReport.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Wednesday, March 05, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using WindowsForms.AOnline.Model;
using WindowsForms.AOnline.Model.BusinessObjects.Dictionary;
using DevExpress.XtraEditors;
using MaiLinh.RSSHelper;

namespace WindowsForms.AOnline.Report.ReportClass
{
    /// <summary>
    /// Get data for Dictionary Report
    /// </summary>
    public class DictionaryReport : BaseReport
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DictionaryReport"/> class.
        /// </summary>
        public DictionaryReport()
        {
            Model = new Model.Model();
        }

        /// <summary>
        /// Gets the fixed asset category list.
        /// </summary>
        /// <param name="frmParent">The FRM parent.</param>
        /// <param name="commonVariable">The common variable.</param>
        /// <param name="oRsTool">The o rs tool.</param>
        /// <returns></returns>
        public IList<AccountModel> GetAccountList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllAccounts();
        }

        /// <summary>
        /// Gets the fixed asset list.
        /// </summary>
        /// <param name="frmParent">The FRM parent.</param>
        /// <param name="commonVariable">The common variable.</param>
        /// <param name="oRsTool">The o rs tool.</param>
        /// <returns></returns>
        public IList<StockModel> GetStockList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllStocks();
        }

        public IList<AutoBusinessModel> GetAutoBusinessList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllAutoBusinesss();
        }

        public IList<CustomerModel> GetCustomerList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllCustomers();
        }

        public IList<DepartmentModel> GetDepartmentList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllDepartments();
        }

        public IList<FixedAssetCategoryModel> GetFixedAssetCategoryList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllFixedAssetCategorys();
        }

        public IList<FixedAssetModel> GetFixedAssetList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            //return Model.GetAllf();
            return null;
        }

        public IList<VendorModel> GetVendorList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllVendors();
        }

        public IList<InventoryItemModel> GetInventoryItemList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        {
            return Model.GetAllInventoryItems();
        }
        ///// <summary>
        ///// Gets the budget chapter list.
        ///// </summary>
        ///// <param name="frmParent">The FRM parent.</param>
        ///// <param name="commonVariable">The common variable.</param>
        ///// <param name="oRsTool">The o rs tool.</param>
        ///// <returns></returns>
        //public IList<BudgetChapterModel> GetBudgetChapterList(XtraForm frmParent, Session.GlobalVariable commonVariable, ReportSharpHelper oRsTool)
        //{
        //    return Model.GetBudgetChapters();
        //}
    }
}
